package com.kmust.dream.wanderingdream.donation.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;


import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
public class BasicInfoVo implements Serializable {
    @TableId
    private String recipientId;
    @NotBlank(message = "身份证号不能为空")
    @Pattern(regexp = "\\w{18}",message = "请输入正确身份证号")
    private String idNumber;
    @NotBlank(message = "名字不能为空")
    private String name;

    private String learningSection;

    private String school;
    @NotBlank(message = "卡号不能为空")
    @Pattern(regexp = "\\w{15,18}",message = "请输入正确卡号")
    private String accountNumber;

    private String  receivingAddress;

    private Date createTime;

    @NotNull(message = "目标金额不能为空")
    private Float targetMoney;

    private String politicalOutlook;

    private String birthday;

    @Max(value = 100,message = "年龄最大不能超过100")
    private int age;

    private Float totalMoney;







}
